<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<jsp:useBean id="bean" class="com.lmpop.frame.util.RandomID" scope="page"/>

<%
	String pri_key = bean.GenTradeId();
	String cust_id="",publish_user_id="";
	if(session.getAttribute("session_cust_id")!=null){
		cust_id  = session.getAttribute("session_cust_id").toString();
	}
	if(session.getAttribute("session_user_id")!=null){
		publish_user_id  = session.getAttribute("session_user_id").toString();
	}
%>

<html>
  <head>
    <title>会员收货地址管理</title>
	<link href="/program/member/index/css/style.css" rel="stylesheet" type="text/css">
	  <script type='text/javascript' src='<%=request.getContextPath()%>/dwr/interface/Ts_areaInfo.js'></script>
      <script type='text/javascript' src='<%=request.getContextPath()%>/dwr/engine.js'></script>
	  <script type='text/javascript' src='<%=request.getContextPath()%>/dwr/util.js'></script>
	  <script type="text/javascript" src="js_area.js"></script>
	  <script type="text/javascript" src="index.js"></script>
</head>

<body>
	<h1>新增会员收货地址</h1>
	<form action="/doTradeReg.do" method="post" name="addForm">
	
	<input name="cust_id" id="cust_id" type="hidden" value="<%=cust_id%>"/>
    <input name="addr_id" id="addr_id" value="<%=pri_key%>" type="hidden" />
	<input name="user_id" id="user_id" value="<%=publish_user_id%>" type="hidden" />
	<table width="100%" cellpadding="0" cellspacing="1" border="0" class="listtab">
		
		<tr>
			<td align="right" width="10%">
				收货人姓名<font color="red">*</font>
			</td>
			<td><input name="consignee" id="consignee" size="20" maxlength="20" type="text" /></td>
		  <td align="right" width="10%">
				优先级<font color="red">*</font>
			</td>
			<td>
			<input name="level_no" id="level_no" size="8" maxlength="8" type="text" onKeyUp="if(!/^[0-9][0-9]*$/.test(this.value))this.value=''"/>（只能为数字）</td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				邮箱<font color="red">*</font>
			</td>
			<td><input name="email" id="email" size="" maxlength="" type="text" /></td>
		<td width="12%" align="right">地区:<font color="red">*</font></td>
		<td width="60%">
         <select name="province" id="province" onclick="setCitys(this.value)">
				  <option value="">省份</option> 
				</select>
				<select name="eparchy_code" id="eparchy_code" onclick="setAreas(this.value)">
				  <option value="">地级市</option> 
				 </select>
				<select name="city_code" id="city_code" style="display:inline" >
				 <option value="">市、县级市、县</option> 
				</select>
			<input name="area_attr" id="area_attr" size="" maxlength="" type="hidden" /></td>
		</tr>
		
		
		<tr>
			<td align="right" width="10%">
				详细地址:<font color="red">*</font>
			</td>
			<td colspan="3">
			<input name="address" id="address" size="50" maxlength="50" type="text" /></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				邮编:<font color="red">*</font>
			</td>
			<td><input name="post_code" id="post_code" size="20" maxlength="10" type="text" onKeyUp="if(!/^[0-9][0-9]*$/.test(this.value))this.value=''"/></td>
		   <td align="right" width="10%">
				电话:
			</td>
			<td><input name="tel" id="tel" size="20" maxlength="20" type="text" onKeyUp="if(!/^[0-9][0-9]*$/.test(this.value))this.value=''"/></td>
			</tr>
		
		<tr>
			<td align="right" width="10%">
				手机<font color="red">*</font>
			</td>
			<td><input name="cellphone" id="cellphone" size="20" maxlength="20" type="text" onKeyUp="if(!/^[0-9][0-9]*$/.test(this.value))this.value=''"/></td>
		<td align="right" width="10%">
				最佳送货时间:
			</td>
			<td>
			<select id="best_time" name="best_time">
			<option value="1">不限</option>
			<option value="2">周一至周五</option>
			<option value="3">周末</option>
			</select>
			</td>
		</tr>
		<tr>
			<td align="right" width="10%">
				备注:
			</td>
			<td colspan="3"><input name="remark" id="remark" size="50" maxlength="50" type="text" /></td>
		</tr>
		
	</table>
	
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center">
				<input type="hidden" name="bpm_id" value="1221" />
				<input type="button" class="buttoncss" name="tradeSub" value="提交" onclick="return checkSub();"/>&nbsp;&nbsp;
				<input type="button" class="buttoncss" name="tradeRut" value="返回" onclick="window.location.href='index.jsp';"/>
			</td>
		</tr>
	</table>
	</form>
</body>

</html>
